/**
 *  用户接口
 */
import { getMasterCommonPkg } from '@/utils/masterData';
const {
  request,
  consts: {
    environment: { apiUrl, userApiPrefix },
  },
} = getMasterCommonPkg();

// 获取用户列表
export async function getUserList(data) {
  return request(
    `${userApiPrefix}/v1/account/list/${data.params.pageSize}/${data.params.pageNum}`,
    {
      method: 'GET',
      params: data.params,
    },
    apiUrl,
  );
}
